package com.fzy.designpattern.flyweight;

/**
 * 子弹类
 *
 * @author 冯赵杨
 * @create 2018/9/14
 */
public class Bullet {
    /**
     * 可以共享的状态
     */
    private String level;

    public Bullet(String level) {
        super();
        this.level = level;
    }


    /**
     * 发射子弹  position不可以共享
     */
    public void send(Postion position) {

        System.out.println(level + "发送 ->位置 ：" + position.getX() + "," + position.getY());

    }
}
